package com.situ.ssm.test;

public class CountThread extends Thread{
    int total;
    @Override
    public void run(){
        synchronized (this){
            for(int i=0;i<100;i++){
                total=total+1;
            }
             this.notify();//唤醒被阻塞的线程
        }
    }
}
